package com.example.demoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName house_product
 */
@TableName(value ="house_product")
public class HouseProduct implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String productid;

    /**
     * 
     */
    private String productname;

    /**
     * 
     */
    private String producttype;

    /**
     * 
     */
    private String productbrand;

    /**
     * 
     */
    private String producttime;

    /**
     * 
     */
    private String partid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getProductid() {
        return productid;
    }

    /**
     * 
     */
    public void setProductid(String productid) {
        this.productid = productid;
    }

    /**
     * 
     */
    public String getProductname() {
        return productname;
    }

    /**
     * 
     */
    public void setProductname(String productname) {
        this.productname = productname;
    }

    /**
     * 
     */
    public String getProducttype() {
        return producttype;
    }

    /**
     * 
     */
    public void setProducttype(String producttype) {
        this.producttype = producttype;
    }

    /**
     * 
     */
    public String getProductbrand() {
        return productbrand;
    }

    /**
     * 
     */
    public void setProductbrand(String productbrand) {
        this.productbrand = productbrand;
    }

    /**
     * 
     */
    public String getProducttime() {
        return producttime;
    }

    /**
     * 
     */
    public void setProducttime(String producttime) {
        this.producttime = producttime;
    }

    /**
     * 
     */
    public String getPartid() {
        return partid;
    }

    /**
     * 
     */
    public void setPartid(String partid) {
        this.partid = partid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HouseProduct other = (HouseProduct) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getProductid() == null ? other.getProductid() == null : this.getProductid().equals(other.getProductid()))
            && (this.getProductname() == null ? other.getProductname() == null : this.getProductname().equals(other.getProductname()))
            && (this.getProducttype() == null ? other.getProducttype() == null : this.getProducttype().equals(other.getProducttype()))
            && (this.getProductbrand() == null ? other.getProductbrand() == null : this.getProductbrand().equals(other.getProductbrand()))
            && (this.getProducttime() == null ? other.getProducttime() == null : this.getProducttime().equals(other.getProducttime()))
            && (this.getPartid() == null ? other.getPartid() == null : this.getPartid().equals(other.getPartid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProductid() == null) ? 0 : getProductid().hashCode());
        result = prime * result + ((getProductname() == null) ? 0 : getProductname().hashCode());
        result = prime * result + ((getProducttype() == null) ? 0 : getProducttype().hashCode());
        result = prime * result + ((getProductbrand() == null) ? 0 : getProductbrand().hashCode());
        result = prime * result + ((getProducttime() == null) ? 0 : getProducttime().hashCode());
        result = prime * result + ((getPartid() == null) ? 0 : getPartid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", productid=").append(productid);
        sb.append(", productname=").append(productname);
        sb.append(", producttype=").append(producttype);
        sb.append(", productbrand=").append(productbrand);
        sb.append(", producttime=").append(producttime);
        sb.append(", partid=").append(partid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}